Linked list representation of stack in c